﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace SqlQueryAnalyzer
{
    public static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ServerConnectForm connForm = new ServerConnectForm();
            if (connForm.ShowDialog() == DialogResult.OK)
            {
                if (connForm.DDLFunctioin.SelectedIndex == 0)
                {
                    Application.Run(new SqlQueryForm());
                }
                else if (connForm.DDLFunctioin.SelectedIndex == 1)
                {
                    Application.Run(new StructIndexForm());
                }
                else if (connForm.DDLFunctioin.SelectedIndex == 2)
                {
                    Application.Run(new CodeGeneratorForm());
                }
            }

        }
    }
}
